<?php

namespace app\common;

class TextFormat
{
  public static function br($content)
  {
    $content = str_replace("\n", '<br/>', $content);

    return $content;
  }

  public static function p($content)
  {
    return "<p>$content</p>";
  }

  public static function a($href, $text)
  {
    return "<a href='$href'>$text</a>";
  }
}
